var requrl = $request.url;

var newbody = '{"traceId":"0bc504e216923458268597029e1e48","serverTimeStamp":1692345827224,"code":"10000","data":{"isNeedRegister":false,"isNew":false,"token":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMDI0NDYwNzU3IiwiaXNzIjoiZ21hbGwtc3RhcnNreSIsImxvZ0lkIjoibnVsbCIsImV4cCI6MTcwMDEyMTgyNywiaWF0IjoxNjkyMzQ1ODI3fQ.rWwK260VlCS7L2kDQ41fqOMUC877_wR0IbC9br0TVrk"},"success":true}';


if(requrl == "https://gw.huiqunchina.com/front-manager/api/login/wxMiniLogin"){

    $done({body:newbody})
}

// if(requrl == "https://sypay.shangshiwl.com/?ct=miniGamePay&ac=miniOrder"){
// var rsp = $response.body;
//     rsp = JSON.parse(rsp);
//     order_id = rsp["data"]["order_sn"];

//     var newurl2 = "http://120.46.215.12:9094/longlin/getfkurl";
//     var header = {"Content-Type": "application/json; charset=utf-8"};
//     var tzjson = {"ordersn": order_id};
    
//     var newbodybark = JSON.stringify(tzjson);

//     let params = {
//         url: newurl2,
//         headers: header,
//         body: newbodybark, 
//     }
//     $httpClient.post(params, function(error, response, data) {})
// }